package br.com.hotel68.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * Entity implementation class for Entity: Room
 *
 */
@SuppressWarnings("serial")
@Entity
public class HostingExpense implements Serializable {

	@Id    
	private Integer id;
	private String description;
	private Double value;
	
	@ManyToOne
	@JoinColumn(name="hosting_id", nullable = false, referencedColumnName="id")
	private Hosting hosting;
	

	public HostingExpense() {
		super();
	}   

	public HostingExpense(double _value, String _description) {
		this.description = _description;
		this.value = _value;
	}

	public Integer getId() {
		return this.id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getDescription() {
		return this.description;
	}
	public void setDescription(String name) {
		this.description = name;
	}

	public Double getValue() {
		return value;
	}
	public void setValue(Double value) {
		this.value = value;
	}
	
	public Hosting getHosting() {
		return hosting;
	}
	public void setHosting(Hosting hosting) {
		this.hosting = hosting;
	}

}
